{% extends "admin/challenges/update.html" %}

{% block value %}
<div class="form-group">
	<label for="value">当前分值<br>
		<small class="form-text text-muted">
			现在挑战的分值
		</small>
	</label>
	<input type="number" class="form-control chal-value" name="value" value="{{ challenge.value }}" disabled>
</div>

<div class="form-group">
	<label for="value">初始值<br>
		<small class="form-text text-muted">
			挑战的初始分值.
		</small>
	</label>
	<input type="number" class="form-control chal-initial" name="initial" value="{{ challenge.initial }}" required>
</div>

<div class="form-group">
	<label for="value">衰减限制<br>
		<small class="form-text text-muted">
			提交通过人数到达多少后，分值衰减到最低分值
		</small>
	</label>
	<input type="number" class="form-control chal-decay" name="decay" value="{{ challenge.decay }}" required>
</div>

<div class="form-group">
	<label for="value">最低分值<br>
		<small class="form-text text-muted">
			这项挑战的最低分值
		</small>
	</label>
	<input type="number" class="form-control chal-minimum" name="minimum" value="{{ challenge.minimum }}" required>
</div>
{% endblock %}